package com.deep.test.designpattern.singleton;

/**
 * <p>Description:还是非线程安全的懒汉式</p>
 * Created with IDEA
 * author:hudepin
 * createTime:2018/5/17 10:34
 */
public class LazyLoadSync {
    private LazyLoadSync(){}
    private static LazyLoadSync instance = null;
    public synchronized static LazyLoadSync getInstance(){
        if(instance==null){
            instance = new LazyLoadSync();
        }
        return instance;
    }
}
